package com.soladhoc.annonces.client.ui;

import com.gwtplatform.mvp.client.ViewImpl;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;

public class OAuthView extends ViewImpl implements OAuthPresenter.MyView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, OAuthView> {
	}

	@Inject
	public OAuthView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}
	@UiField Button googleAuthButton;
	@Override
	public HasClickHandlers getAuthButton() {
		return this.googleAuthButton;
	}
}
